var User = /** @class */ (function () {
    function User(n, a) {
        this.name = n;
        this.age = a;
    }
    User.prototype.info = function () {
        return this.name + "\u7684\u5E74\u9F84\u662F" + this.age;
    };
    return User;
}());
// 属性是独有的 方法是在原型上的
var user = new User('coderzrf', 22);
var zrf = new User('zrf', 23);
console.log(user.info());
var users = [];
users.push(zrf, user);
// 修饰符
